/**$Licence:
 *   Use this however/wherever you like, just don't blame me if it breaks anything.
 *   Copyright (C) 2008 - 2012 xingsheng.zhu@gmail.com All rights reserved.
 */
package com.blazemina.config;

/**
 * @author JackChu
 * @version 1.0.0 2012-2-7 下午4:17:26
 */
public class IdleTime {

	public static final int STATE_NOT_IDLE = 0;
	public static final int STATE_READ_IDLE = 1;
	public static final int STATE_WRITE_IDLE = 2;
	public static final int STATE_BOTH_IDLE = 3;

	private int state;
	private int timeoutSeconds;

	/**
	 * @return the state
	 */
	public int getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(int state) {
		this.state = state;
	}

	/**
	 * @return the timeoutSeconds
	 */
	public int getTimeoutSeconds() {
		return timeoutSeconds;
	}

	/**
	 * @param timeoutSeconds
	 *            the timeoutSeconds to set
	 */
	public void setTimeoutSeconds(int timeoutSeconds) {
		this.timeoutSeconds = timeoutSeconds;
	}

}
